<%@ page language="java" import="java.util.*" pageEncoding="utf-8" %>
 <%@ page import="com.fit.user.dao.*"  %>
 <%@ page import="com.fit.user.entity.*"%>
 <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
 <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'callback.jsp' starting page</title>
    

  </head>
  
  <body>
    <%
      PoliceMsgDAO dao = new PoliceMsgDAO();
      List<PoliceMsgEntity> policeMsgEntities = dao.getPoliceMsgInCallBack();
      request.setAttribute("policeMsgEntities",policeMsgEntities);
      if(policeMsgEntities != null){
      String[] table={"警号","姓名","性别","生日","部门编码","权限","密码","是否冻结","操作"};
      %>
      <table class="table_boder" cellSpacing="0" cellPadding="0" width="700">
        <tr  align="center" class="myrow" bgcolor="#1D639F">
  <c:forEach var="name" items="<%=table %>">
			 <td class="td_boder"  style="color:#ffffff;">${name }</td> 
  </c:forEach>
  </tr>
   <c:forEach var="policeMsgEntity" items = "<%=policeMsgEntities %>">
	<tr>
	<td>${policeMsgEntity.policeID }</td>
	<td>${policeMsgEntity.policeName }</td>
	<td>${policeMsgEntity.policeSex }</td>
	<td>${policeMsgEntity.policeBith }</td>
	<td>${policeMsgEntity.policeSect }</td>
	<td>${policeMsgEntity.purview }</td>
	<td>${policeMsgEntity.policepw }</td>
	<td>${policeMsgEntity.freeze }</td>
	 
	
	<td><a href ="<%=basePath %>/servlet/CallBack?policeID=${policeMsgEntity.policeID }&&flag=del">彻底删除此用户</a></td>
	<td><a href ="<%=basePath %>/servlet/CallBack?policeID=${policeMsgEntity.policeID }&&flag=reback">还原此用户</a></td>
	</tr>
	</c:forEach>
	</table>
      <%
      }
       %>
						</td></tr></table>
	</td>
  </tr>
</table>
  </body>
</html>
